USE [master]
GO

/****** Object:  Database [ElmahDb]    Script Date: 21/11/2012 11:34:48 p.m. ******/

IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'ElmahDb')
BEGIN 
  DROP DATABASE [ElmahDb]
END
GO

/****** Object:  Database [ElmahDb]    Script Date: 21/11/2012 11:34:48 p.m. ******/
CREATE DATABASE [ElmahDb]
GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ElmahDb].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [ElmahDb] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [ElmahDb] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [ElmahDb] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [ElmahDb] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [ElmahDb] SET ARITHABORT OFF 
GO

ALTER DATABASE [ElmahDb] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [ElmahDb] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [ElmahDb] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [ElmahDb] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [ElmahDb] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [ElmahDb] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [ElmahDb] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [ElmahDb] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [ElmahDb] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [ElmahDb] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [ElmahDb] SET  DISABLE_BROKER 
GO

ALTER DATABASE [ElmahDb] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [ElmahDb] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [ElmahDb] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [ElmahDb] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [ElmahDb] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [ElmahDb] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [ElmahDb] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [ElmahDb] SET RECOVERY SIMPLE 
GO

ALTER DATABASE [ElmahDb] SET  MULTI_USER 
GO

ALTER DATABASE [ElmahDb] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [ElmahDb] SET DB_CHAINING OFF 
GO

ALTER DATABASE [ElmahDb] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO

ALTER DATABASE [ElmahDb] SET TARGET_RECOVERY_TIME = 0 SECONDS 
GO

ALTER DATABASE [ElmahDb] SET  READ_WRITE 
GO